import request from "@/utils/request";

// 删除单个规则
export function deductDel(query) {
  return request({
    method: 'get',
    url:'/integral/deduction/delete',
    params:query
  })
}

// 查看单个规则
export function getDeduction(query) {
  return request({
    method: 'get',
    url:'/integral/deduction/get',
    params:query
  })
}

//查询积分抵现活动列表
export function getDeductList(data) {
  return request({
    method: 'post',
    url:'/integral/deduction/list',
    data
  })
}


//新增抵现活动
export function saveDeduction(data) {
  return request({
    method: 'post',
    url:'/integral/deduction/save',
    data
  })
}

//编辑抵现活动
export function updateDeduction(data) {
  return request({
    method: 'post',
    url:'/integral/deduction/update',
    data
  })
}


// 梯度限制规则删除
export function delRule(query) {
  return request({
    method: 'get',
    url:'/integral/deduction/rule/delete',
    params:query
  })
}
